﻿//-------------------------------------------------------------------
//	Copyright (c) 2010-2014  Zhirnov Andrey
//	This file is part of the "UX Standard Lib" project.
//	See copyright notice in "UX_STL_Ext.h".
//-------------------------------------------------------------------

#ifdef __UX_STL_UNIT_TEST__

//#define _DEFCFG_UXS_USE_OPENGL_DISABLED
#define _DEFCFG_UXS_USE_OPENGLES_DISABLED
#define _DEFCFG_UXS_USE_OPENAL_DISABLED
#define _DEFCFG_UXS_USE_OPENCL_DISABLED
#define _DEFCFG_UXS_USE_DIRECTX11_DISABLED

//#define PLATFORM_SDL

#include "../ux_stl_ext.h"

using namespace UX_STL;
using namespace UXTypesExt;
using namespace UXMathExt;


extern void ColorFormat_AllTest ();
extern void ImageUtils_AllTest ();
extern void SoundGen_Test();

extern void GetSystemInfoTest();

extern void Test_Temp ();


void Test0()
{
	Test_Temp();

	GetSystemInfoTest();

	//ColorFormat_AllTest();
	//SoundGen_Test();
	//ImageUtils_AllTest();
}


#include "../../stl_core/ux_stl_core_lib.h"


#ifdef PLATFORM_ANDROID

void AndMain()
{
	Test0();
}

#endif	// PLATFORM_ANDROID


#ifdef PLATFORM_WINDOWS

#ifndef _UXS_USE_DIRECTX11
	using namespace winapi;
#endif

int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
	Test0();
	//ColorFormat_AllTest();
	//GLWindowTest();
	//DXWindowTest();
	//GLESWindowTest();
	//GetSystemInfoTest();
	//TypesTest();
	return 0;
}
#endif	// PLATFORM_WINDOWS


#endif	// __UX_STL_UNIT_TEST__